home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Creative Computers
/
Creative Computers CD-ROM, Volume 1 (Legendary Design Technologies, Inc.)(1994).iso
/
commercial
/
legendary_design
/
addressit!
/
reqbase.i
< prev
next >
Wrap
Text File
|
1994-11-17
|
21KB
|
476 lines
; reqlibrary.i © 1988/1989 reserved by Colin Fox and Bruce Dawson */
IFND REQ_LIBRARY_I
REQ_LIBRARY_I SET 1
INCLUDE "intuition/intuition.i"
INCLUDE "libraries/dos.i"
INCLUDE "libraries/dosextens.i"
INCLUDE "exec/memory.i"
INCLUDE "exec/initializers.i"
INCLUDE "exec/alerts.i"
ReqVersion EQU 1
PairsSize EQU 20
STRUCTURE GadgetBlock.,0 ;a boolean button style text gadget
STRUCT gb_Gadget,gg_SIZEOF
STRUCT gb_Border,bd_SIZEOF
STRUCT gb_Pairs,PairsSize
STRUCT gb_Text,it_SIZEOF
LABEL gb_SIZEOF
STRUCTURE StringBlock.,0 ;a string gadget
STRUCT sb_Gadget,gg_SIZEOF
STRUCT sb_Info,si_SIZEOF
STRUCT sb_Border,bd_SIZEOF
STRUCT sb_Pairs,PairsSize
LABEL sb_SIZEOF
STRUCTURE PropBlock.,0 ;a prop gadget
STRUCT pb_Gadget,gg_SIZEOF
STRUCT pb_Info,pi_SIZEOF
STRUCT pb_Image,ig_SIZEOF
LABEL pb_SIZEOF
STRUCTURE SliderBlock.,0 ;a slider (two arrows & a prop)
STRUCT slb_ArrowUpLt,gg_SIZEOF
STRUCT slb_ImageUpLt,ig_SIZEOF
STRUCT slb_ArrowDnRt,gg_SIZEOF
STRUCT slb_ImageDnRt,ig_SIZEOF
STRUCT slb_Prop,pb_SIZEOF ;this is at the end for REFRESH GLIST purposes
LABEL slb_SIZEOF
STRUCTURE TwoImageBlock,0
STRUCT tib_Gadget,gg_SIZEOF
STRUCT tib_Image1,ig_SIZEOF
STRUCT tib_Image2,ig_SIZEOF
LABEL tib_SIZEOF
ATTITUDEB EQU 16 ;Bit# of the attitude bit.
HorizSlider EQU 0<<ATTITUDEB ;which way the slider stands
VertSlider EQU 1<<ATTITUDEB ;This is so that it bypasses all gadget flags.
; This structure is use with the TextRequester function.
STRUCTURE TRStructure,0
APTR TR_Text ;This is the message text, including printf() style formatting if desired.
APTR TR_Controls ;This is the address of the parameter list, if printf() style formatting is used.
APTR TR_Window ;This is an optional (zero if not used) pointer to a window on the screen you
;would like the requester to show up on.
APTR TR_MiddleText ;If non-zero, this is the text for the gadget in the lower middle (returns 2).
APTR TR_PositiveText ;If non-zero, this is the text for the gadget in the lower left hand corner (returns 1).
APTR TR_NegativeText ;If non-zero, this is the text for the gadget in the lower right (returns 0).
APTR TR_Title ;This is the title for the window.
WORD TR_KeyMask ;This is the qualifier mask for the keyboard shortcuts.
;Use $FFFF to allow any qualifiers (or none).
;Zero means that no keyboard shortcuts are allowed.
WORD TR_textcolor ;Color of the text. Uses Color 1 if no Color specified.
WORD TR_detailcolor ;Detail and block color, as in a NewWindow structure. If
WORD TR_blockcolor ;both are left zero, block pen will be set to 1.
WORD TR_versionnumber ;Make SURE this is set to zero.
LONG TR_rfu1 ;Make SURE you leave these two zeroed also.
LONG TR_rfu2 ;Make SURE you leave these two zeroed also.
LABEL TR_SIZEOF
;/* NOTE:
;
; The control values mentioned above are used if you choose to insert
;printf style directives in your strings and should contain the address of
;a list of control parameters, usually on the stack.
; */
; This structure is for use with the GetLong function.
GLNODEFAULTB EQU 0 ;Set this bit in the flags if you don't want a default
;value to show up in the get long string gadget. For
;some things this is much better than having a zero
;show up.
GLNODEFAULTM EQU 1<<GLNODEFAULTB
STRUCTURE GetLongStruct,0
APTR gl_titlebar
LONG gl_defaultval
LONG gl_minlimit
LONG gl_maxlimit
LONG gl_result
APTR gl_window
WORD gl_versionnumber; ;Make SURE this is set to zero.
LONG gl_flags; ;Some, uh flags. See above for bit definitions.
LONG gl_rfu2; ;Make SURE you leave these two zeroed also.
LABEL gl_SIZEOF
STRUCTURE GetStringStruct,0
APTR gs_titlebar
APTR gs_stringbuffer
APTR gs_window
WORD gs_stringsize
WORD gs_visiblesize
WORD gs_versionnumber
LONG gs_flags
LONG gs_rfu1
LONG gs_rfu2
LONG gs_rfu3
LABEL gs_SIZEOF
; Remember, if you don't want to go through the hassle of
; initializing a ExtendedColorRequester structure, you can always just call
; ColorRequester (as opposed to ExtendedColorRequester). ColorRequester
; just takes a single parameter, in D0, the color that should start out
; being highlit. It returns a single value, the color that was selected at
; the end.
; This structure is for use with the ExtendedColorRequester (_not_,
; the ColorRequester) function.
STRUCTURE ExtendedColorRequesterStruct,0
LONG ecr_defcolor ;The color that is initially highlit.
APTR ecr_window ;The window the 'requester' opens up in (zero normally).
LONG ecr_rfu1 ;Who knows what these will be used for,
LONG ecr_rfu2 ;but I'm sure we'll think of something.
LONG ecr_rfu3 ;Until then, just keep these zeroed.
LONG ecr_rfu4 ;Okay?
LONG ecr_rfu5
LABEL ecr_SIZEOF
IFND DSIZE
DSIZE EQU 130
FCHARS EQU 30
ENDC
WILDLENGTH EQU 30
FRQSHOWINFOB EQU 0 ;Set this in Flags if you want .info files to show. They default to hidden.
FRQEXTSELECTB EQU 1 ;Set this in Flags if you want extended select. Default is not.
FRQCACHINGB EQU 2 ;Set this in Flags if you want directory caching. Default is not.
FRQGETFONTSB EQU 3 ;Set this in Flags if you want a font requester rather than a file requester.
FRQINFOGADGETB EQU 4 ;Set this in Flags if you want a hide-info files gadget.
FRQHIDEWILDSB EQU 5 ;Set this in Flags if you DON'T want 'show' and 'hide' string gadgets.
FRQABSOLUTEXYB EQU 6 ;Use absolute x,y positions rather than centering on mouse.
FRQCACHEPURGEB EQU 7 ;Purge the cache whenever the directory date stamp changes if this is set.
FRQNOHALFCACHEB EQU 8 ;Don't cache a directory unless it is completely read in when this is set.
FRQNOSORTB EQU 9 ;Set this in Flags if you DON'T want sorted directories.
FRQNODRAGB EQU 10 ;Set this in Flags if you DON'T want a drag bar and depth gadgets.
FRQSAVINGB EQU 11 ;Set this bit if you are selecting a file to save to.
FRQLOADINGB EQU 12 ;Set this bit if you are selecting a file(s) to load from.
;These two bits (save and load) aren't currently used for
;anything, but they may be in the future, so you should
;remember to set them. Also, these bits make it easier if
;somebody wants to customize the file requester for their
;machine. They can make it behave differently for loading
;vs saving.
FRQDIRONLYB EQU 13 ;Allow the user to select a directory, rather than a file.
FRQSHOWINFOM EQU 1<<FRQSHOWI